﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.IO;
using System.Linq;
using System.Web;
using WebMatrix.WebData;

namespace BT_Longnv.Models
{
    public class CategoryModel
    {   
        [Required]
        public int CategoryId { get; set; }
        [Required]
        public string CategoryName { get; set; }
        public string Description { get; set; }
        public int ProductId { get; set; }
    }
    public class ProductModel
    {
        [Required]
        public int ProductId { get; set; }
        [Required]
        public string ProductName { get; set; }
        public decimal UnitPrice { get; set; }
        public int UnitInOrder { get; set; }
        public string Piture { get; set; }
        public DateTime ImportDate { get; set; }
        public int CategoryId { get; set; }
        public string CategoryName { get; set; }
    }
    public class CustomerModel
    {
        [Required]
        public int CustomerId { get; set; }
        [Required]
        public string CustomerName { get; set; }
        public string Phone { get; set; }
        public string Address { get; set; }
        public string CompanyName { get; set; }
        [Required]
        public string UserName { get; set; }
        [Required]
        public string Password { get; set; }
    }
    public class OrderModel
    {
        [Required]
        public int OrderId { get; set; }
        [Required]
        public int CustomerId { get; set; }
        public DateTime OrderDate { get; set; }
    }
    public class OrderDetailModel
    {
        [Required]
        public int OrderId { get; set; }
        [Required]
        public int ProductId { get; set; }
        public decimal UnitPrice { get; set; }
        public int OrderNumber { get; set; }
    }
}